//
//  CTabBar.h
//  OperationPro
//
//  Created by yaxue wang on 16/9/27.
//  Copyright © 2016年 展鸿科技. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CTabBarItem.h"
@protocol CTabBarItemSelectedDelegate;
@interface CTabBar : UIView
- (void) addTabBar:(UITabBarItem *) tabbaritem;
- (void) addTabBarItem:(CTabBarItem *)tabbaritem;
- (void) clear;
- (CTabBarItem *) tabBarItem:(NSInteger) index;
@property (nonatomic) NSInteger selectIndex;
@property (nonatomic) NSInteger showIndex;
@property (nonatomic, readonly) NSArray * tabBarItems;
@property (nonatomic, strong) id<CTabBarItemSelectedDelegate> Delegate;
@end

@protocol CTabBarItemSelectedDelegate <NSObject>

@optional
- (void) CTabBar:(CTabBar *)tabbar selectedIndex:(NSInteger) index;
- (void) CTabBar:(CTabBar *)tabbar selectedTabBarItem:(CTabBarItem *)tabbaritem;
@end
